package com.xiaomei.manager.web.controller;



import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


import com.xiaomei.manager.service.IOrderOperateService;

import com.xiaomei.manager.web.dto.BiteDto;

import com.xiaomei.manager.web.dto.req.OrderOperateAndUser;
import com.xiaomei.manager.web.page.Page;

@Controller
@RequestMapping("/bite")
public class BiteController {
	
	@Autowired
	private IOrderOperateService iOrderOperateService;
	
	@RequiresPermissions("bite:view")
	@RequestMapping()
	public String list(Model model,BiteDto dto,Page<OrderOperateAndUser> page) {
		iOrderOperateService.getByParamMap(dto, page);
		model.addAttribute("dto", dto);
		model.addAttribute("page", page);
		return "bite/list";
	}

}
